package com.yxe.service.impl;

import com.yxe.mapper.PersonalCertificateMapper;
import com.yxe.pojo.PersonalCertificate;
import com.yxe.service.PersonalCertificateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 大白羊
 */
@Service
public class PersonalCertificateServiceImpl implements PersonalCertificateService {

    @Autowired
    private PersonalCertificateMapper personalCertificateMapper;

    /**
     * 添加认证信息
     * @param personalCertificate
     */
    @Override
    public void addPersonalCertificate(PersonalCertificate personalCertificate) {

        personalCertificateMapper.insert(personalCertificate);
    }

    /**
     * 查看实名认证信息
     * @param id
     * @return
     */
    @Override
    public PersonalCertificate findPersonalCertificate(Integer id) {
        return personalCertificateMapper.findPersonalCertificate(id);
    }
}
